package com.example.outdoor;

import android.app.Activity;
import android.content.Intent;
import android.view.View.OnClickListener;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;



public class Tables extends Activity implements OnClickListener{
	Button ButtonImortTable;
	Button ButtonEditTable;
	Button ButtonRemoveTable,btnGoBackTables;
	@Override
	
    protected void onCreate(Bundle savedInstanceState) {
		 requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);  
		  setProgressBarIndeterminateVisibility(true);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tables);
        
      ButtonImortTable=(Button)findViewById(R.id.btnImportTables);
      ButtonEditTable=(Button)findViewById(R.id.btnEdittables);
      ButtonRemoveTable=(Button)findViewById(R.id.btnRemovesTables);
      //ButtonAddTable=(Button)findViewById(R.id.btnAddTables);
      btnGoBackTables=(Button)findViewById(R.id.btnGoBackTables);
      ButtonImortTable.setOnClickListener(this);
      ButtonEditTable.setOnClickListener(this);
      ButtonRemoveTable.setOnClickListener(this);
      
      btnGoBackTables.setOnClickListener(this);
	}
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btnImportTables:
			 Intent ourIntent=new Intent(Tables.this,ImportTable.class);
			 startActivity(ourIntent);
			break;
		case R.id.btnEdittables:
			 Intent ourEditIntent=new Intent(Tables.this,EditTables.class);
			 startActivity(ourEditIntent);
			break;
		case R.id.btnRemovesTables:
			 Intent ourRemoveIntent=new Intent(Tables.this,RemoveTable.class);
			 startActivity(ourRemoveIntent);
			break;
		case R.id.btnGoBackTables:
			Intent ourGoBackIntent=new Intent(Tables.this,MenuPage.class);
			startActivity(ourGoBackIntent);
			break;
		
			default:
				break;
		}
		
	}
}
